<template>
  <div>
    <el-form :model="form" :rules="rules" ref="ruleForm" label-width="100px">
      <el-form-item label="产品特色：" prop="featureInfo">
        <quilleditor v-model="form.featureInfo" :disabled="type=='look'" />
      </el-form-item>
      <!-- <el-form-item>
        <el-button type="primary" @click="save">保存</el-button>
      </el-form-item> -->
    </el-form>
  </div>
</template>

<script>
import quilleditor from 'components/quilleditor';

export default {
  components: {
    quilleditor
  },
  props: ['type'],
  data() {
    return {
      form: {
        featureInfo: ''
      },
      rules: {
        // featureInfo: [
        //   { required: true, message: '请输入产品特色', trigger: 'blur' }
        // ]
      },
      content: ''
    };
  },
  methods: {
    setData(obj) {
      this.form = {
        featureInfo: obj.featureInfo
      }
    },
    async getData(type) {
      if(type) {
        await this.$refs.ruleForm.validate()
      }
      let data = {...this.form}
      return data
    },
  },
  mounted() {
    
  }
};
</script>

<style lang="scss" scoped></style>
